system-linux: restore reading flags from netlink messages
authorFelix Fietkau <[email protected]>
Wed, 27 Nov 2024 20:02:04 +0000 (21:02 +0100)
committerFelix Fietkau <[email protected]>
Wed, 27 Nov 2024 20:02:06 +0000 (21:02 +0100)
commit768027c5a7640137857f412f554227abd6160cdd
tree3e366836074c74b2d8e88eabfe75e28b0d39b2a6
parentd29cf707478cfc5465fc8a7b8ccfde72a739a4f6
system-linux: restore reading flags from netlink messages

The SIOCGIFFLAGS ioctl truncates returned flags to u16, and the IFF_LOWER_UP
flag exceeds that size. Because of that, the carrier status needs to be pulled
from the netlink message.

Signed-off-by: Felix Fietkau <[email protected]>
system-linux.c